package com.carrot.gateway.constant;

/**
 * Redis相关常量
 */
public interface RedisConstants {

    String SEPARATOR = ":";

    /**
     * 服务前缀
     */
    String SERVICE_NAME="uaa:";

    /**
     * jwk access_token set缓存前缀
     */
    String AUTHORIZATION_ACCESS_TOKEN_PREFIX_KEY = SERVICE_NAME+"authorization:access_token:";

    /**
     * jwk access_token set缓存前缀
     */
    String AUTHORIZATION_USER_ACCESS_TOKEN_PREFIX_KEY = SERVICE_NAME+"authorization:user:access_token:";

    //============================用户在线令牌===================================

    /**
     * 用户在线令牌
     */
    String USER_ON_LINE_TOKEN=SERVICE_NAME+"user:onLineToken:";

    /**
     * 用户在线刷新令牌
     */
    String USER_ON_LINE_TOKEN_REFRESH=SERVICE_NAME+"user:onLineToken:refresh:";

    /**
     * 用户在线访问令牌
     */
    String USER_ON_LINE_TOKEN_ACCESS=SERVICE_NAME+"user:onLineToken:access:";


    //============================ 租户客户端信息 ===================================
    String TENANT_CLIENT_INFO_KEY = "system:tenant:client:";

    //============================ 租户的api访问权限 ===================================

    String ORDER_API_SERVICE_KEY = "system:tenant:order:api:";
}
